//
//  Number.swift
//  Sorts
//
//  Created by lhc on 2023/12/7.
//

import SwiftUI

struct Number: View {
    
    @State var num = 0
    var firstColor: Color = .first
    var secondColor: Color = .second
    
    var body: some View {
        Text("\(num)")
            .foregroundStyle(secondColor)
            .font(.title)
            .frame(width: 60, height: 60)
            .background(RoundedRectangle(cornerRadius: 8)
                .fill(firstColor)
                .frame(width: 60, height: 60))
            .background(
                RoundedRectangle(cornerRadius: 8)
                    .fill(secondColor)
                    .frame(width: 65, height: 65)
            )
            .padding()
            
    }
}

#Preview {
    Number()
}
